package cool.houge.infra.tx;

import io.avaje.inject.aop.Aspect;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author KK (kzou227@qq.com)
 */
@Aspect(target = TransactionAspect.class)
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Transactional {

  /**
   * @return
   */
  boolean readOnly() default false;
}
